home *** CD-ROM | disk | FTP | other *** search
- From: jcoffin@rmii.com (Jerry Coffin)
- Message-ID: <4f8a3g$sgq@natasha.rmii.com>
- X-Original-Date: Tue, 06 Feb 1996 20:38:48 GMT
- Path: in1.uu.net!bounce-back
- Date: 07 Feb 96 01:48:03 GMT
- Approved: fjh@cs.mu.oz.au
- Newsgroups: comp.std.c++
- Subject: Re: #ifdef XXXX
- Organization: TAEUS
- References: <1996Feb1.092058.4745@iiasa.ac.at> <3112531A.3410@ElSegundoCA.ATTGIS.COM>
- X-Newsreader: Forte Free Agent 1.0.82
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMRgE4eEDnX0m9pzZAQFvQQF/U2o6FclpaLv50+pitOiqfMqeIhbYOkIL
- jb9r9kVYJ+M9rgVU1lNQeBXceqmNT1JL
- =4ici
-
- "Charles F. McDevitt" <Chuck.McDevitt@elsegundoca.attgis.com> wrote:
-
- >Wouldn't it be better to update the C++ standard so the
- >default is that include files only get included once, and the
- >compiler/preprocessor keeps track of which ones it's already
- >seen. Then we wouldn't have to mess with these ugly #ifdefs
- >to make include files only be included once.
-
- This would require adding some special directive to deal with those
- headers that may need to be included more than once. E.g. assert.h may
- be included any number of times, and depending on the current defintion
- of NDEBUG, the definition of assert will change with each new inclusion.
- ---
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. Moderation policy:
- http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
-